
		
        <div class="panel panel-info">
            <div class="panel-heading">自定义名称</div>
            <div class="panel-body">
                <div class="form-group">
                    <label class="col-xs-12 col-sm-3 col-md-2 control-label">提交页自定义标题</label>
                    <div class="col-xs-12 col-sm-9">
                         <input type="text" class="form-control" placeholder="" name="titles" value="{$par['title']}" />
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-xs-12 col-sm-3 col-md-2 control-label">表单封面</label>
                    <div class="col-xs-12 col-sm-9">
                         {php echo tpl_form_field_image('thumb',$activity['thumb']);}
	      				<span class="help-block">用一张图片来更好的表现你的表单主题</span>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-xs-12 col-sm-3 col-md-2 control-label">轮播图</label>
                    <div class="col-sm-9">
						{php echo tpl_form_field_multi_image('slide', $slide);}		
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-xs-12 col-sm-3 col-md-2 control-label">提交页头部</label>
                    <div class="col-xs-12 col-sm-9">
						<div class="btn-group" data-toggle="buttons">
							<label class="btn btn-default {if $par['header'] == 1}active{/if}"><input type="radio" name="header" value="1" {if $par['header'] == 1} checked="checked"{/if} >显示封面</label>
							<label class="btn btn-default {if $par['header'] == 2}active{/if}"><input type="radio" name="header" value="2" {if $par['header'] == 2} checked="checked"{/if}>显示文字</label>
							<label class="btn btn-default {if $par['header'] == 3}active{/if}"><input type="radio" name="header" value="3" {if $par['header'] == 3} checked="checked"{/if}>显示轮播图</label>
							<label class="btn btn-default {if $par['header'] == 0}active{/if}"><input type="radio" name="header" value="0" {if $par['header'] == 0} checked="checked"{/if}>关闭</label>
						</div>
						<span class="help-block">仅在 WEUI 系列模板中有效，开启后封面图作为头部背景。</span>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-xs-12 col-sm-3 col-md-2 control-label">提交记录列表标题</label>
                    <div class="col-xs-12 col-sm-9">
                    <div class="input-group">
                    <input type="text" name="mname" class="form-control" value="{$par['mname']}" /><span class="input-group-addon">例：我的表单 或是 我的预约、我的报名等</span>
                    </div>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-xs-12 col-sm-3 col-md-2 control-label">状态名称设置</label>
                    <div class="col-xs-12 col-sm-9">
                    <div class="input-group">
                    <span class="input-group-addon">待受理/待跟进</span><input type="text" name="state1" class="form-control" value="{$par['state1']}" />
                    <span class="input-group-addon">已受理/跟进中</span><input type="text" name="state2" class="form-control" value="{$par['state2']}" />
                    <span class="input-group-addon">退回修改</span><input type="text" name="state8" class="form-control" value="{$par['state8']}" />
                    </div>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-xs-12 col-sm-3 col-md-2 control-label"></label>
                    <div class="col-xs-12 col-sm-9">
                    <div class="input-group">
                    <span class="input-group-addon">已完成</span><input type="text" name="state3" class="form-control" value="{$par['state3']}" />
                    <span class="input-group-addon">拒绝受理</span><input type="text" name="state4" class="form-control" value="{$par['state4']}" />
                    <span class="input-group-addon">已取消</span><input type="text" name="state5" class="form-control" value="{$par['state5']}" />
                    </div>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-xs-12 col-sm-3 col-md-2 control-label">提交按钮标题</label>
                    <div class="col-xs-12 col-sm-9">
                    <input type="text" name="submitname" class="form-control" value="{$par['submitname']}" />
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-xs-12 col-sm-3 col-md-2 control-label">提交按钮颜色</label>
                    <div class="col-xs-12 col-sm-9">
					<div class="btn-group" data-toggle="buttons">
						<label class="btn btn-default {if $par['btncolor'] == 0}active{/if}"><input type="radio" name="btncolor" value="0" {if $par['btncolor'] == 0} checked="checked"{/if}>绿色</label>
						<label class="btn btn-default {if $par['btncolor'] == 1}active{/if}"><input type="radio" name="btncolor" value="1" {if $par['btncolor'] == 1} checked="checked"{/if} >蓝色</label>
						<label class="btn btn-default {if $par['btncolor'] == 2}active{/if}"><input type="radio" name="btncolor" value="2" {if $par['btncolor'] == 2} checked="checked"{/if}>橙色</label>
						<label class="btn btn-default {if $par['btncolor'] == 3}active{/if}"><input type="radio" name="btncolor" value="3" {if $par['btncolor'] == 3} checked="checked"{/if}>红色</label>
					</div>
                    </div>
                </div>
			</div>
        </div>
        <div class="panel panel-info">
            <div class="panel-heading">提交页皮肤设置</div>
            <div class="panel-body">
			
	{if pdo_tableexists('dayu_form_skins') && !empty($skins)}
		<div class="form-group">
			<div class="col-sm-12 col-xs-12">
				<div class="row row-fix">
                {loop $skins $key $skin}
					{if $_W['uniacid']==$skin['weid'] || empty($skin['weid'])}
					<div class="col-xs-8 col-sm-8 col-md-3 template_picker">
						<div class="thumbnail btn" style="text-align:center;width:100%; {if $skin['mode']==9}background-color:#c8e6c9;{/if}" data-toggle="tooltip" data-placement="bottom" title="{$skin['description']}">
							<img  class="imgtip" style="height:100px;overflow:hidden;" src="{php echo tomedia($skin['thumb'])}" bigimg="{php echo tomedia($skin['thumb'])}">
							<span style="display:block;white-space: nowrap;text-overflow:ellipsis; overflow:hidden">{$skin['title']}</span>
							<div class="radio">
								<label>
									<input type="radio" name="skins" value="{$skin['name']}" {if $activity['skins'] == $skin['name'] || $key=='0'} checked="checked"{/if}>{$skin['weid']}选择
								</label>
							</div>
						</div>
					</div>
					{/if}
                {/loop}
				{if $_W['isfounder']}
					<div class="col-xs-6 col-sm-6 col-md-3">
						<div class="thumbnail" style="text-align:center;width:100%;background-color:#bbdefb;" title="联系作者QQ：18898859">
							<span style="display:block;white-space: nowrap;text-overflow:ellipsis; overflow:hidden"> 本提示仅创始人可见</span>
							<label>定制皮肤300元/起</label>
						</div>
					</div>
				{/if}
            </div>
          </div>
        </div>
	{else}
        <div class="form-group">
          <label class="col-xs-12 col-sm-4 col-md-3 col-lg-2 control-label">WEUI模板</label>
          <div class="col-sm-8 col-xs-12">
            <div class="row row-fix">
  <div class="col-xs-6 col-sm-6 col-md-3 template_picker">
    <div class="thumbnail" style="text-align:center;width:140px;">
        <span style="display:block;white-space: nowrap;text-overflow:ellipsis; overflow:hidden">WEUI</span>
      <div class="radio">
        <label>
          <input type="radio" name="skins" value="weui" {if $activity['skins'] == 'weui' || empty($activity['skins'])} checked="checked"{/if}>
          选择
        </label>
      </div>
    </div>
  </div>
  <div class="col-xs-6 col-sm-6 col-md-3 template_picker">
    <div class="thumbnail" style="text-align:center;width:140px;" title="单选、多选、下拉，无弹出式">
        <span style="display:block;white-space: nowrap;text-overflow:ellipsis; overflow:hidden">WEUI2</span>
      <div class="radio">
        <label>
          <input type="radio" name="skins" value="weui2" {if $activity['skins'] == 'weui2'} checked="checked"{/if}>
          选择
        </label>
      </div>
    </div>
  </div>
  <div class="col-xs-6 col-sm-6 col-md-3 template_picker">
    <div class="thumbnail" style="text-align:center;width:140px;" title="显示表单详细说明">
        <span style="display:block;white-space: nowrap;text-overflow:ellipsis; overflow:hidden">WEUI3</span>
      <div class="radio">
        <label>
          <input type="radio" name="skins" value="weui3" {if $activity['skins'] == 'weui3'} checked="checked"{/if}>
          选择
        </label>
      </div>
    </div>
  </div>
  <div class="col-xs-6 col-sm-6 col-md-3 template_picker">
    <div class="thumbnail" style="text-align:center;width:140px;">
        <span style="display:block;white-space: nowrap;text-overflow:ellipsis; overflow:hidden">WEUI大示例图</span>
      <div class="radio">
        <label>
          <input type="radio" name="skins" value="weui4" {if $activity['skins'] == 'weui4'} checked="checked"{/if}>
          选择
        </label>
      </div>
    </div>
  </div>
            </div>
          </div>
        </div>
        <div class="form-group">
          <label class="col-xs-12 col-sm-4 col-md-3 col-lg-2 control-label">WEUI定制模板</label>
          <div class="col-sm-8 col-xs-12">
            <div class="row row-fix">
	{template 'weui'}
  {if $_W['isfounder']}
  <div class="col-xs-6 col-sm-6 col-md-3">
    <div class="thumbnail" style="text-align:center;width:140px;" title="联系作者QQ：18898859">
      <span style="display:block;white-space: nowrap;text-overflow:ellipsis; overflow:hidden">
        仅超级管理员可见
      </span>
      <label>
        定制模板300元/起
      </label>
    </div>
  </div>
  {/if}
            </div>
          </div>
        </div>
{/if}
            </div>
        </div>
		
<script type="text/javascript">
$(function () {
	var x = 10;
	var y = 20;
	$(".imgtip").mouseover(function (e) {
		this.myTitle = this.title;
		this.title = "";
		var imgtip = "<div id='imgtip'><img src='" + $(this).attr("bigimg") + "' width='380' alt='预览图'/><\/div>"; //创建 div 元素
		$("body").append(imgtip); //把它追加到文档中
		if (e.pageX + 300 > $(window).width()) {
			x = 10;
		} else {
			x = $(window).width() - 390;
		}
		$("#imgtip").css({
			"z-index": 9999,
			"position" : "fixed",
			"top": (20) + "px",
			"left": x + "px"
		}).show("fast");   //设置x坐标和y坐标，并且显示
	}).mouseout(function () {
		this.title = this.myTitle;
		$("#imgtip").remove();  //移除
	}).mousemove(function (e) {
		$("#imgtip").css({
			"z-index": 9999,
			"position" : "fixed",
			"top": (20) + "px",
			"left": x + "px"
		});
	});

	$(".template_picker").click(function(e) {
		$(this).find('input').attr('checked', 'checked');
	});
});
</script>